projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e63e2b9
)
add hostname to dhcp client request
author
Felix Fietkau
<
[email protected]
>
Sun, 24 Jul 2005 23:40:14 +0000
(23:40 +0000)
committer
Felix Fietkau
<
[email protected]
>
Sun, 24 Jul 2005 23:40:14 +0000
(23:40 +0000)
SVN-Revision: 1541
openwrt/target/default/target_skeleton/sbin/ifup
patch
|
blob
|
history
diff --git
a/openwrt/target/default/target_skeleton/sbin/ifup
b/openwrt/target/default/target_skeleton/sbin/ifup
index 5dac3f9987546b4424bdcd07a2541bf1ce6bd2c0..8f55ce3e0bd72d9ce0df3fcb8881a2cce3d7e697 100755
(executable)
--- a/
openwrt/target/default/target_skeleton/sbin/ifup
+++ b/
openwrt/target/default/target_skeleton/sbin/ifup
@@
-50,7
+50,11
@@
case "$if_proto" in
;;
dhcp)
ip=$(nvram get ${type}_ipaddr)
- ${DEBUG:-eval} "udhcpc -R -i $if ${ip:+-r $ip} -b -p $pidfile &"
+ DHCP_ARGS="-R -i $if ${ip:+-r $ip} -b -p $pidfile"
+ DHCP_HOSTNAME=$(nvram get ${type}_hostname)
+ DHCP_HOSTNAME=${DHCP_HOSTNAME%%.*}
+ [ -z $DHCP_HOSTNAME ] || DHCP_ARGS="$DHCP_ARGS -H $DHCP_HOSTNAME"
+ ${DEBUG:-eval} "udhcpc $DHCP_ARGS &"
;;
none|"")
;;